 - - M a p S t y l e s T o T a g s . a s 
 t e l l   a p p l i c a t i o n   " A d o b e   I n D e s i g n   C S 2 " 
 	 i f   ( c o u n t   d o c u m e n t s )   >   0   t h e n 
 	 	 i f   ( c o u n t   p a r a g r a p h   s t y l e s   o f   a c t i v e   d o c u m e n t )   >   1   t h e n 
 	 	 	 m y   m y M a p S t y l e s T o T a g s ( a c t i v e   d o c u m e n t ) 
 	 	 e n d   i f 
 	 e n d   i f 
 e n d   t e l l 
 o n   m y M a p S t y l e s T o T a g s ( m y D o c u m e n t ) 
 	 t e l l   a p p l i c a t i o n   " A d o b e   I n D e s i g n   C S 2 " 
 	 	 t e l l   m y D o c u m e n t 
 	 	 	 r e p e a t   w i t h   m y C o u n t e r   f r o m   3   t o   ( c o u n t   p a r a g r a p h   s t y l e s ) 
 	 	 	 	 s e t   m y P a r a g r a p h S t y l e   t o   p a r a g r a p h   s t y l e   m y C o u n t e r 
 	 	 	 	 s e t   m y S t y l e N a m e   t o   n a m e   o f   m y P a r a g r a p h S t y l e 
 	 	 	 	 i f   m y S t y l e N a m e   i s   n o t   " [ N o   p a r a g r a p h   s t y l e ] "   t h e n 
 	 	 	 	 	 - -   Z a m i e n i a m y   s p a c j e .   W   r a z i e   p o t r z e b y   w y s z u k u j e m y   r  w n i e  
 	 	 	 	 	 - -   i n n e   z n a k i . 
 	 	 	 	 	 s e t   m y S t y l e N a m e   t o   m y   m y R e p l a c e C h a r a c t e r s ( m y S t y l e N a m e ,   "   " ,   " _ " ) 
 	 	 	 	 	 s e t   m y T a g   t o   m a k e   X M L   t a g   w i t h   p r o p e r t i e s   { n a m e : m y S t y l e N a m e } 
 	 	 	 	 	 - -   M a p u j e m y   s t y l e   n a   z n a c z n i k i 
 	 	 	 	 	 s e t   m y M a p   t o   m a k e   X M L   e x p o r t   m a p   w i t h   p r o p e r t i e s   { m a r k u p   t a g : m y T a g ,   m a p p e d   s t y l e : m y P a r a g r a p h S t y l e } 
 	 	 	 	 	 - -   A b y   p r z e p r o w a d z i    m a p o w a n i e   z n a c z n i k  w   d o   s t y l  w ,   n a l e  y   o z n a c z y    k o m e n t a r z e m 
 	 	 	 	 	 - -   p o w y  s z y   w i e r s z   k o d u   i   u s u n    z n a c z n i k   k o m e n t a r z a   z   w i e r s z a   u m i e s z c z o n e g o   p o n i  e j . 
 	 	 	 	 	 - - s e t   m y M a p   t o   m a k e   X M L   i m p o r t   m a p   w i t h   p r o p e r t i e s    
 	 	 	 	 	 - - { m a r k u p   t a g : m y T a g ,   m a p p e d   s t y l e : m y P a r a g r a p h S t y l e } 
 	 	 	 	 e n d   i f 
 	 	 	 e n d   r e p e a t 
 	 	 	 - -   P r z e p r o w a d z a m y   m a p o w a n i e   z d e f i n i o w a n e   p o w y  e j 
 	 	 	 a u t o   t a g 
 	 	 e n d   t e l l 
 	 e n d   t e l l 
 e n d   m y M a p S t y l e s T o T a g s 
 o n   m y R e p l a c e C h a r a c t e r s ( m y S t r i n g ,   m y S e a r c h S t r i n g ,   m y R e p l a c e S t r i n g ) 
 	 s e t   A p p l e S c r i p t ' s   t e x t   i t e m   d e l i m i t e r s   t o   t h e   m y S e a r c h S t r i n g 
 	 s e t   t h e   m y L i s t   t o   e v e r y   t e x t   i t e m   o f   m y S t r i n g 
 	 s e t   A p p l e S c r i p t ' s   t e x t   i t e m   d e l i m i t e r s   t o   t h e   m y R e p l a c e S t r i n g 
 	 s e t   m y S t r i n g   t o   t h e   m y L i s t   a s   s t r i n g 
 	 s e t   A p p l e S c r i p t ' s   t e x t   i t e m   d e l i m i t e r s   t o   " " 
 	 r e t u r n   m y S t r i n g 
 e n d   m y R e p l a c e C h a r a c t e r s